package com.huika.dealontop.support.domain;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Description:
 * Created by zhouweiyong on 2015/11/24.
 */
public class LinePayInfoBean implements Parcelable {
    private String transactionId;
    private String paymentAccessToken;
    private LinePayPaymentUrlBean paymentUrl;

    public String getTransactionId() {
        return transactionId;
    }

    public void setTransactionId(String transactionId) {
        this.transactionId = transactionId;
    }

    public String getPaymentAccessToken() {
        return paymentAccessToken;
    }

    public void setPaymentAccessToken(String paymentAccessToken) {
        this.paymentAccessToken = paymentAccessToken;
    }

    public LinePayPaymentUrlBean getPaymentUrl() {
        return paymentUrl;
    }

    public void setPaymentUrl(LinePayPaymentUrlBean paymentUrl) {
        this.paymentUrl = paymentUrl;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.transactionId);
        dest.writeString(this.paymentAccessToken);
        dest.writeParcelable(this.paymentUrl, flags);
    }

    public LinePayInfoBean() {
    }

    protected LinePayInfoBean(Parcel in) {
        this.transactionId = in.readString();
        this.paymentAccessToken = in.readString();
        this.paymentUrl = in.readParcelable(LinePayPaymentUrlBean.class.getClassLoader());
    }

    public static final Parcelable.Creator<LinePayInfoBean> CREATOR = new Parcelable.Creator<LinePayInfoBean>() {
        public LinePayInfoBean createFromParcel(Parcel source) {
            return new LinePayInfoBean(source);
        }

        public LinePayInfoBean[] newArray(int size) {
            return new LinePayInfoBean[size];
        }
    };
}
